/*
 * FstreamC.h
 *
 *  Created on: May 21, 2012
 *      Author: marchi
 */

#ifndef FSTREAMC_H_
#define FSTREAMC_H_
#include "Fstream.h"
#include "gmxfio.h"
#include "xtcio.h"

class FstreamC: public Fstream {
	t_fileio * fin;
	void sStep();
public:
	FstreamC(string & file){
		fin=gmx_fio_open(file.c_str(),"rb");
		sStep();
	}
	t_fileio * getfin(){return fin;}
	virtual void nextFrame();
	virtual void seekg(long int,string);
	virtual ios::streampos tellg();
	virtual ~FstreamC();
};

#endif /* FSTREAMC_H_ */
